using System;
using System.Runtime.Serialization;

namespace ArtSpec
{
    [Serializable]
    public class SpecException : Exception
    {
        public SpecException(){}

        public SpecException(string message) : base(message)
        {
        }

        public SpecException(string message, Exception error)
            : base(message, error)
        {
        }

        protected SpecException(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }
    }

    [Serializable]
    public class SpecNotDefinedException : SpecException
    {
        public SpecNotDefinedException() : base("Specification not defined") { }

        protected SpecNotDefinedException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}